package org.protester.core;

import javax.persistence.Column;
import javax.persistence.Entity;

import org.protester.base.EntityBase;

/**
 * Classe que define uma tag simples
 * 
 * @author fernandojr.ifcg@live.com
 * 
 */
@Entity
public class Tag extends EntityBase {

	@Column(nullable = false, unique = true)
	private String name;

	public Tag() {

	}

	public Tag(String name) {
		this.setName(name);
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name.trim().toLowerCase();
	}

}
